package org.andao.commons.service;

import java.util.Map;

import org.andao.commons.model.SysConfiguration;
import org.andao.core.base.service.BaseService;
import org.andao.core.dao.helper.Page;
import org.andao.core.exception.ServiceException;




/**
 * 系统参数配置接口.
 * 
 * @author Marco.hu(hzg139@163.com)
 */
public interface SysConfigurationService extends BaseService<SysConfiguration>{
	
	/**
	 * 保存并更新缓存
	 * @param sysConfiguration
	 * @throws ServiceException
	 */
	void saveSysConfiguration(SysConfiguration sysConfiguration) throws ServiceException;
	
	/**
	 * update并更新缓存
	 * @param sysConfiguration
	 * @throws ServiceException
	 */
	void updateSysConfiguration(SysConfiguration sysConfiguration) throws ServiceException;
	
	/**
	 * 删除并更新缓存
	 * @param resourceid
	 * @throws ServiceException
	 */
	void deleteSysConfiguration(String resourceid) throws ServiceException;
	
	/**
	 * 批量删除
	 * @param resourceids
	 * @throws ServiceException
	 */
	void batchDeleteSysConfiguration(String[] resourceids) throws ServiceException;
	
	/**
	 * 根据条件查询列表
	 * @param condition
	 * @param page
	 * @return
	 * @throws ServiceException
	 */
	Page findSysConfigurationByCondition(Map<String,Object> condition,Page page) throws ServiceException;
}
